﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Web_Admin_ascx_navigation : System.Web.UI.UserControl
{
    public string Title;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            loadData();
        }
    }

    /// <summary>
    /// 加载数据
    /// </summary>
    private void loadData()
    {
        lit_title.Text = Title;
        Model.Admin model = Session["admin"] as Model.Admin;
        if (model == null)
        {
            return;
        }

        lit_lastlogintime.Text = model.Lastlogintime.Value.ToString("yyyy-MM-dd HH:mm:ss");
        lit_logincount.Text = model.Logincount.ToString();
    }
}
